package cn.appsys.service.developer;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.appsys.dao.devuser.AppInfoMapper;
import cn.appsys.pojo.AppInfo;

@Service
public class AppInfoServiceImpl implements AppInfoService {
	
	@Resource
	private AppInfoMapper mapper;

	@Override
	public List<AppInfo> getAppInfo(String softwareName, Integer status, Integer flatformId, Integer categoryLevel1,
			Integer categoryLevel2, Integer categoryLevel3,int currentPageNo,int pageSize) {
		List<AppInfo> applist = new ArrayList<AppInfo>();
		try {
			applist = mapper.getAppInfo(softwareName, status, flatformId, categoryLevel1, categoryLevel2, categoryLevel3, currentPageNo, pageSize);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
		return applist;
	}

	@Override
	public int getCount(
			String softwareName
			,Integer status
			,Integer flatformId
			,Integer categoryLevel1
			,Integer categoryLevel2
			,Integer categoryLevel3
			,int devId) {
		return mapper.getCount(softwareName, status, flatformId, categoryLevel1, categoryLevel2, categoryLevel3, devId);
	}
	
	

}
